import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl, adminUrl } = url();

// 生产分析
export function productAnalysis(data = {}) {
  return request({
    url: `${adminUrl}mes/production/productAnalysis`,
    method: "post",
    data,
  });
}
// 开完工统计
export function finishStatistics(data = {}) {
  return request({
    url: `${adminUrl}mes/production/finishStatistics`,
    method: "post",
    data,
  });
}
// 车间生产统计
export function workshopStatistics(data = {}) {
  return request({
    url: `${adminUrl}mes/production/workshopStatistics`,
    method: "post",
    data,
  });
}
// 异常分析
export function anomalyAnalysis(data = {}) {
  return request({
    url: `${adminUrl}mes/production/anomalyAnalysis`,
    method: "post",
    data,
  });
}
// 物料配送相关数量
export function materialDistribution(data = {}) {
  return request({
    url: `${adminUrl}mes/production/materialDistribution`,
    method: "post",
    data,
  });
}
// 物料需求分析
export function materialRequirement(data = {}) {
  return request({
    url: `${adminUrl}mes/production/materialRequirement`,
    method: "post",
    data,
  });
}